package pojo;

public class Stock {
    private Integer id;
    private String name;
    private String category;
    private int number;
    private String unit;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Stock() {
    }

    public Stock(Integer id, String name, String category, int number, String unit) {
        this.id = id;
        this.name = name;
        this.category = category;
        this.number = number;
        this.unit = unit;
    }

    @Override
    public String toString() {
        return "Stock{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", category='" + category + '\'' +
                ", number=" + number +
                ", unit='" + unit + '\'' +
                '}';
    }
}
